<form id="frm_district_edit" method="POST" action="<?php echo $save_action; ?>">
    <?php $this->load->view('location/district/message'); ?>
    <input id="entity_id" type="hidden" name="id" value="<?php echo $district->id; ?>" />
    <div class="clearfix auto_height mb_10">
        <?php $this->load->view('admin/location/district/buttons'); ?>
    </div>
    <div class="form_block">
        <div class="block_header">
            Thông tin căn bản
        </div>
        <div class="block_content">
            <table cellpadding="0px" cellspacing="0px">
                <tr>
                    <td class="frm_label">Thành phố(*)</td>
                    <td class="frm_field">
                        <select name="data[city_id]">
                            <?php foreach ($cities as $city) :?>
                            <option value="<?php echo $city->id; ?>" <?php if ($city->id == $district->city_id) :?>selected="selected"<?php endif; ?>><?php echo $city->name; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="frm_label">Tên quận huyện(*)</td>
                    <td class="frm_field">
                        <input type="text" class="std_input required" name="data[name]" value="<?php echo $district->name ?>" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>